<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>牛皮得【ZVue】</title>
</head>
<body>
<div id="app">
    <p>姓名：{{name}}</p>
    <p>年龄：{{age}}</p>
    <p z-text="name"></p>

    <input type="text" z-model="message">
    <p>message: <span z-text="message"></span> </p>
    <p>message: <span>{{message}}</span> </p>


    <button @click="onClick">点击我</button>
</div>
<script src="src/compile.js"></script>
<script src="src/ZVue.js"></script>
<script>
    let app = new ZVue({
        el: '#app',
        data:{
            name: 'VUE',
            age: 20,
            message:'12356'
        },
        methods:{
            onClick(){
                this.name = '测试'
            }
        }
    });

</script>
</body>
</html>
